1bashThis demonstrates using the grep command to filter the output of ls -l to show only .txt files.ls -l | grep "\.txt"bash internalfile and stream operationsstream redirection and pipingpiping
2bashThis script filters out comments and empty lines from the ~/.bashrc file and prints the remaining content.cat ~/.bashrc | grep -v '#' | grep -v '^$'bash internalfile and stream operationsstream redirection and pipingpiping
3bashThis demonstrates piping in Bash.head -n 5 sales.csv | tail -n 1bash internalfile and stream operationsstream redirection and pipingpiping